package cn.gogpay.dcb.api.feign;

import cn.gogpay.dcb.api.feign.form.DrivingForm;
import cn.gogpay.dcb.api.feign.impl.CertCenterClientImpl;
import cn.gogpay.dcb.common.dto.ResultDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.context.annotation.Primary;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 工行钱包服务 client
 *
 * @author jiaoming@gogpay.cn
 * @date 2019/11/22 21:34
 * ,url = "192.168.2.133:8323"
 */
@Primary
@FeignClient(name = "certificate-center", fallback = CertCenterClientImpl.class)
public interface CertCenterClient {


    /**
     * 查询驾驶证信息
     *
     * @param form
     * @return
     */
    @ResponseBody
    @PostMapping("/cert/api/queryDrivingCardByCardNo")
    ResultDTO queryDrivingCardByCardNo(@RequestBody DrivingForm form);


}

